package org.kleathome.dcpu16.asm;

import org.kleathome.dcpu16.DCPU16Literal;

public class ASMLiteral extends DCPU16Literal
{
	public ASMLiteral(String value)
	{
		super((char)0x20);
		int base = 10;
		if (value.toLowerCase().startsWith("0x"))
		{
			value = value.substring(2);
			base = 16;
		}
		_value = (char) Integer.parseInt(value, base);
		
		if (_value < 0x20)
			readNext = false;
		else
			readNext = true;
	}
}
